/*
 * Copyright (c) 2002 David Corbin and others. All rights reserved. This program
 * and the accompanying materials are made available under the terms of the
 * Common Public License v0.5 which accompanies this distribution, and is
 * available at http://www.eclipse.org/legal/cpl-v05.html
 * 
 * Contributors: David Corbin - Abstracts Eclipse behavior that involves static
 * references Boris Pruessmann - Clean up work.
 */
package net.sourceforge.perforce.ui;

import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.jface.resource.ImageDescriptor;

/**
 * @version $Revision: 488 $
 * @author <a href="mailto:dcorbin@users.sourceforge.net">David Corbin</a>
 */
public interface MicroPlugin {
  //----------------------------------------------------------------------------
  // ----------Methods

  /**
   * Call this method to retrieve the ImageDescriptor with the given id.
   * 
   * @param id the descriptor's identifier.
   * @return the ImageDescriptor.
   */
  ImageDescriptor getImageDescriptor(String id);

  /**
   * Returns the WorkspaceRoot.
   * 
   * @return the workspace root.
   */
  IWorkspaceRoot getWorkspaceRoot();

}
